home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Network Login Scr 2.xpl < prev    next >
Text File  |  2002-02-18  |  1KB  |  44 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Startup\Windows NT/2K/XP\30) Before Login Window"
  5. "NAME"="Screensaver: Timeout"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Timeout (sec)"
  9. "OSVERSION"="0101011"
  10. "DESCRIPTION 1"="This plug-in can be used to configure the timeout of the screensaver that is used while the login window is active (as long as now user is activate)."
  11. "DESCRIPTION 2"="Please specify the timeout in seconds. The default value is "600" (=10 Minutes)"
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to ckkitchen@telus.net [xpatriot@hotmail.com] for the idea!"
  16.  
  17.  
  18.  sP="HKEY_USERS\.DEFAULT\Control Panel\Desktop\ScreenSaveTimeOut"
  19.  
  20. Sub Plugin_Initialize 
  21.  s=RegReadValue(sP) 
  22.  Call SetUIElement(1,s)
  23. End Sub
  24.  
  25. Sub Plugin_CheckData(ElementIndex)
  26. End Sub
  27.  
  28. Sub Plugin_Apply(ElementIndex,ElementSubIndex) 
  29.  s1=GetUIElement(1)
  30.  if len(s1)>1 then
  31.     Call RegWriteValue(sP,s1,1)
  32.   else
  33.     Call MsgError("Please enter the timeout value!")
  34.  end if
  35.  
  36.  Call Logoff()
  37. End Sub
  38.  
  39. Sub Plugin_Terminate 
  40. End Sub
  41.  
  42.  
  43.  
  44.